package com.example.zyh.service.Impl;

import com.example.zyh.mapper.XzlMapper;
import com.example.zyh.pojo.Xzl;
import com.example.zyh.service.XzlService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class XzlServiceImpl implements XzlService {
    @Resource
    private XzlMapper xzlMapper;

    @Override
    public List<Xzl> select() {
        return xzlMapper.select();
    }

    @Override
    public void addXzl(Xzl xzl) {
        xzlMapper.addXzl(xzl);
    }

    @Override
    public void deleteXzl(int id) {
        xzlMapper.deleteXzl(id);
    }

    @Override
    public void updateXzl(Xzl xzl) {
        xzlMapper.updateXzl(xzl);
    }
}
